package experiment.e01.code;

import java.util.Scanner;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/9/15 15:49
 * @package experiment.e01
 * @description 文件说明
 */

public class E05_Welcome {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入专业：");
        String specialty = scanner.nextLine();
        System.out.println("请输入姓名：");
        String name = scanner.nextLine();
        System.out.println(String.format("欢迎%s专业的%s同学开始学习面向对象程序设计！",
                specialty, name));
    }
}
